<#include "../head.ftl">
<div class="page_title">客户开发计划</div>
<div class="button_bar">
    <button class="common_button" onclick="help('');">帮助</button>
    <button class="common_button" onclick="document.forms[0].submit()" ;>查询</button>
</div>
<form action="${url}" method="get">
    <table class="query_form_table">
        <table class="query_form_table">
            <tr>
                <th>客户名称</th>
                <td><input type="text" name="name" value=""/></td>
                <th>概要</th>
                <td><input type="text" name="outline" value=""/></td>
                <th>联系人</th>
                <td>
                    <input type="text" name="contacts" value=""/>
                </td>
                <input type="hidden" id="number" name="number" value=""/>
            </tr>
        </table>
        <br/>
        <table class="data_list_table">
            <tr>
                <th>编号</th>
                <th>客户名称</th>
                <th>概要</th>
                <th>联系人</th>
                <th>联系人电话</th>
                <th>创建时间</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
	    <#list page.content as refer>
			<tr>
                <td class="list_data_number">${refer.id}</td>
                <td class="list_data_text">${refer.name}</td>
                <td class="list_data_ltext">${refer.outline}</td>
                <td class="list_data_text">${refer.contacts}</td>
                <td class="list_data_text">${refer.telephone}</td>
                <td class="list_data_text">${refer.createtime}</td>
				<#if refer.status == 1>
				    <td class="list_data_text">开发中</td>
					<td class="list_data_op">
                        <a href="${base}/plan/list?referid=${refer.id}">
                            <img title="制定计划" src="${base}/images/bt_plan.gif" class="op_button"/>
                        </a>
                        <a href="${base}/plan/execute?referid=${refer.id}">
                            <img title="执行计划" src="${base}/images/bt_feedback.gif" class="op_button"/>
                        </a>
                        <a href="${base}/refer/success?referid=${refer.id}">
                            <img title="开发成功" src="${base}/images/bt_yes.gif" class="op_button"/>
                        </a>
                    </td>
                <#else>
                    <td class="list_data_text">已归档</td>
                    <td class="list_data_op">
                    <a href="${base}/refer/lookover?id=${refer.id}">
                        <img title="查看" src="${base}/images/bt_detail.gif" class="op_button"/>
                    </a>
                    </td>
                </#if>
                </tr>
            </#list>
            <tr>
                <th colspan="10" class="pager">
<#include "../foot.ftl">